package com.wym.rbac.mapper;

import com.wym.rbac.domain.Permission;
import com.wym.rbac.domain.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface PermissionMapper {
    List<Permission> selectAll();
    List<Permission>selectForList(QueryObject qo);
    void batchInsert(@Param("permissions") Set<Permission> permissions);
    List<Permission>selectByRoleId(Long roleId);
    List<String>selectExpressionByEmpId(Long empId);
}
